package com.lock.subscribe.constant;


public enum  ResultCodeEnum {

    OK(200,"succ"),
    NO(201,"FAILE"),
    NOT_GATEWAY(1001,"设备不存在"),
    NOT_ONLINE(1002,"网关不在线"),
    INVALID_PARAMS(1003,"无效参数"),
    NOT_CONNENT(1004,"请按8#联网重试"),
    INVALID_CARDID(1005,"空闲中"),
    UPLOAD_ERROR(1006,"记录保存失败"),
    CMDISSUED_FALSE(1007,"网关已绑定"),
    CMDISSUED_SUCCESS(200,"待下发"), 
    CMDISSUED_FAIL(300,"下发失败"), 
    GATEWAY_EIXT(1007,"网关已绑定"),
    USER_EIXT(1008,"用户已存在"),
    USER_NOTEIXT(1009,"用户不存在"),
    SAVE_FALSE(1010,"用户保存失败"),
    SUB_EIXT(1011,"已经提交过审核"),
    DEVICE_EIXT(1012,"设备已绑定"),
    IS_OWNER(1013,"本人是超级管理员"),
    OVER_PITNUM(1014,"坑号已满,无法添加"),
    NTO_ENOUGH_PRIVILEGES(1015,"权限不足"),
    ;


    private Integer code ;
    private String desc ;

    ResultCodeEnum(Integer code,String desc){
        this.code=code;
        this.desc=desc;
    }

    public Integer getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }}
